package edu.maimonides.ejercicios.ides2.sql.dao;

import java.sql.SQLException;
import java.util.List;

import edu.maimonides.ejercicios.ides2.sql.model.Persona;

public interface PersonaDAO {
	public void create(Persona persona) throws SQLException;
	/**
	 * @param persona
	 * @throws SQLException If the query fails or if the {@link Persona} doesn't exist
	 */
	public void delete(Persona persona) throws SQLException;
	/**
	 * @param persona
	 * @throws SQLException If the query fails or if the {@link Persona} doesn't exist
	 */
	public void update(Persona persona) throws SQLException;
	public List<Persona> getByCondition(String condition) throws SQLException;
	public List<Persona> all() throws SQLException;
}
